Integrand size = 26, antiderivative size = 60 \[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=-\frac {2 i a \sqrt {e \cos (c+d x)}}{d}+\frac {2 a \sqrt {e \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3596, 3567, 3856, 2719} \[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=\frac {2 a E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {e \cos (c+d x)}}{d \sqrt {\cos (c+d x)}}-\frac {2 i a \sqrt {e \cos (c+d x)}}{d} \]
[In]
[Out]
Rule 2719
Rule 3567
Rule 3596
Rule 3856
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {e \cos (c+d x)} \sqrt {e \sec (c+d x)}\right ) \int \frac {a+i a \tan (c+d x)}{\sqrt {e \sec (c+d x)}} \, dx \\ & = -\frac {2 i a \sqrt {e \cos (c+d x)}}{d}+\left (a \sqrt {e \cos (c+d x)} \sqrt {e \sec (c+d x)}\right ) \int \frac {1}{\sqrt {e \sec (c+d x)}} \, dx \\ & = -\frac {2 i a \sqrt {e \cos (c+d x)}}{d}+\frac {\left (a \sqrt {e \cos (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{\sqrt {\cos (c+d x)}} \\ & = -\frac {2 i a \sqrt {e \cos (c+d x)}}{d}+\frac {2 a \sqrt {e \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 3.68 (sec) , antiderivative size = 192, normalized size of antiderivative = 3.20 \[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=\frac {a \cos (c) \sqrt {e \cos (c+d x)} \sin (c) (\cos (d x)-i \sin (d x)) \left (\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2(d x+\arctan (\tan (c)))\right ) (-i \csc (c)-\sec (c)) \sec (c) \sin (d x+\arctan (\tan (c)))+\sqrt {\sin ^2(d x+\arctan (\tan (c)))} \left (2 \cos (d x+\arctan (\tan (c))) \csc (c) (i \csc (c)+\sec (c))+\sec (c) \left (-2 i \cos (c+d x) \csc ^2(c) \sqrt {\sec ^2(c)}+(i \csc (c)+\sec (c)) \sin (d x+\arctan (\tan (c)))\right )\right )\right ) (-i+\tan (c+d x))}{d \sqrt {\sec ^2(c)} \sqrt {\sin ^2(d x+\arctan (\tan (c)))}} \]
[In]
[Out]
Time = 4.26 (sec) , antiderivative size = 108, normalized size of antiderivative = 1.80
method | result | size |
default | \(\frac {2 a e \left (2 i \left (\sin ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}-i \sin \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) e +e}\, d}\) | \(108\) |
parts | \(\frac {2 a \sqrt {e \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, e \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{\sqrt {-e \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {e \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}\, d}-\frac {2 i a \sqrt {e \cos \left (d x +c \right )}}{d}\) | \(161\) |
risch | \(-\frac {2 i \sqrt {2}\, a \sqrt {e \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) {\mathrm e}^{-i \left (d x +c \right )}}}{d}-\frac {i \left (-\frac {2 \left (e \,{\mathrm e}^{2 i \left (d x +c \right )}+e \right )}{e \sqrt {{\mathrm e}^{i \left (d x +c \right )} \left (e \,{\mathrm e}^{2 i \left (d x +c \right )}+e \right )}}+\frac {i \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, \left (-2 i E\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )+i F\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {e \,{\mathrm e}^{3 i \left (d x +c \right )}+e \,{\mathrm e}^{i \left (d x +c \right )}}}\right ) \sqrt {2}\, a \sqrt {e \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) {\mathrm e}^{-i \left (d x +c \right )}}\, \sqrt {e \,{\mathrm e}^{i \left (d x +c \right )} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}\) | \(301\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.08 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.45 \[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=\frac {2 i \, \sqrt {2} a \sqrt {e} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, e^{\left (i \, d x + i \, c\right )}\right )\right )}{d} \]
[In]
[Out]
\[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=i a \left (\int \left (- i \sqrt {e \cos {\left (c + d x \right )}}\right )\, dx + \int \sqrt {e \cos {\left (c + d x \right )}} \tan {\left (c + d x \right )}\, dx\right ) \]
[In]
[Out]
\[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=\int { \sqrt {e \cos \left (d x + c\right )} {\left (i \, a \tan \left (d x + c\right ) + a\right )} \,d x } \]
[In]
[Out]
\[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=\int { \sqrt {e \cos \left (d x + c\right )} {\left (i \, a \tan \left (d x + c\right ) + a\right )} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sqrt {e \cos (c+d x)} (a+i a \tan (c+d x)) \, dx=\int \sqrt {e\,\cos \left (c+d\,x\right )}\,\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right ) \,d x \]
[In]
[Out]